// Package v1
// @Author Spume
// @Date 2025-01-24 13:17

package v1

import (
	"gitee.com/spume/common_service/app/billing/api/schmea"
	"gitee.com/spume/common_service/app/billing/internal/model/entity"
	"gitee.com/spume/common_service/utility/api"
	"github.com/gogf/gf/v2/frame/g"
)

type WithdrawCreateReq struct {
	g.Meta `path:"/withdraw" method:"post"`
	schmea.CommonReq

	*schmea.WithdrawBatch
}

type WithdrawCreateRes struct {
}

type WithdrawApproveReq struct {
	g.Meta `path:"/withdraw/approve" method:"post"`
	schmea.CommonReq

	WithdrawId int    `p:"withdrawId" v:"required"`
	Approved   bool   `p:"approved"`
	Remark     string `p:"remark" `
}

type WithdrawApproveRes struct {
}

type WithdrawListReq struct {
	g.Meta `path:"/withdraw" method:"get"`
	schmea.CommonReq

	MemberId     *string `p:"memberId"`
	CurrencyType *int    `p:"currencyType"`

	Status *int `p:"status"`

	*api.PageLstReq
}

type WithdrawListRes struct {
	*api.PageLstRes[*entity.WithdrawDetail]
}
